package com.fivestyle.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张代钊
 * @since 2021-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Order对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    private String userId;

    @ApiModelProperty(value = "收件人")
    private String userName;

    @ApiModelProperty(value = "收货电话")
    private String userPhone;

    @ApiModelProperty(value = "收货地址")
    private String userAddr;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal moneyTotal;

    private String bookId;

    @ApiModelProperty(value = "书本单价")
    private BigDecimal bookPrice;

    @ApiModelProperty(value = "书本图片")
    private String bookImg;

    @ApiModelProperty(value = "书名")
    private String bookName;

    @ApiModelProperty(value = "书本数量")
    private Integer bookCount;

    @ApiModelProperty(value = "订单状态")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date created;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;


}
